package goexpr

type Integer interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

// Add get the params sum
func Add[T Integer](param1, param2 T, ints ...T) T {
	sum := param1 + param2
	for _, v := range ints {
		sum += v
	}
	return sum
}
